#########################################################################
### Kline, Bankert, Levitan, Kraft. 2017.                             ###
### "Personality and Prosocial Behavior: A Multilevel Meta-Analysis"  ###
### - MASTER file to replicate all analyses 						  ###
#########################################################################

## set working directory
rm(list=ls())
setwd("PLEASE SET YOUR WORKING DIRECTORY HERE")

## Install required packages
pkg <- c("rstan","dplyr","haven","ggplot2","stargazer","lme4")
inst <- pkg %in% installed.packages()
if (length(pkg[!inst]) > 0) install.packages(pkg[!inst])
rm(pkg, inst)

## model estimation
source("MLMA_estimation.R", echo=T, max.deparse.length=10000)

## summary of results
source("MLMA_summary.R", echo=T, max.deparse.length=10000)
